package com.baway.main.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

/**
 * Author: Jason Zhang
 * Date: 2025/8/23
 * Desc: 主页面适配器
 */
class MainPageAdapter constructor(fm: FragmentManager, private val listFragment: List<Fragment>, behavior: Int) : FragmentPagerAdapter(fm, behavior){

    override fun getCount(): Int = listFragment.size

    override fun getItem(position: Int): Fragment = listFragment[position]

}